import { useLocation } from "react-router-dom"
import qr from "query-string"
let Toplist = () => {
    let location = useLocation()
    console.log(location)
    //转转query参数,直接从location.search中获取
    let queryString = qr.parse(location.search)
    console.log(queryString)
    return (
        <fieldset>
            <legend>Toplist</legend>
            <h1>Toplist</h1>
        </fieldset>
    )
}

export default Toplist